package org.wuliu.pojo;

public class RolePerm {
    private Integer id;
    private Integer roleId;
    private Integer permId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getPermId() {
        return permId;
    }

    public void setPermId(Integer permId) {
        this.permId = permId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        RolePerm rolePerm = (RolePerm) o;

        if (id != null ? !id.equals(rolePerm.id) : rolePerm.id != null) return false;
        if (roleId != null ? !roleId.equals(rolePerm.roleId) : rolePerm.roleId != null) return false;
        if (permId != null ? !permId.equals(rolePerm.permId) : rolePerm.permId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (roleId != null ? roleId.hashCode() : 0);
        result = 31 * result + (permId != null ? permId.hashCode() : 0);
        return result;
    }
}
